/*
 * @Description: 顶部的按钮相关
 */
import globalData from '@/plugins/data';

export default ({ service, request, tools }) => ({
    /**
     * @description: 获取按钮列表
     */
    btnGroupTopGetButtonList(params) {
        return request({
            url: '/new/buttons',
            params,
        });
    },
    /**
     * @description: 待办不显示（删除）
     */
    btnGroupTopDeleteCol(summaryId = globalData.summaryId) {
        return request({
            url: `/deleteDraftPending/${summaryId}`,
            method: 'post',
        });
    },
});
